<script type="text/javascript" src="<?=base_url()?>js/jquery.min.js"></script>
<script type="text/javascript">
	$('#loaispcon').change(function(){
		
		var loaicon = ($(this).attr('value'));
		var loaicha = ($('#loaicha').attr('value'));
	
		//alert(loaicon);
		//alert(loaicha);
		$.post("<?=base_url()?>index.php/qlsp_admin_controller/getSanPham_ajax_con_admin",{loaicon:loaicon, loaicha:loaicha},function(data){
			$('#noi_dung').html(data);
 			//alert($('#noi_dung').text());
		});
		
	});
</script>
<select name="loaispcon" id="loaispcon">
<option value='1'>------Tất cả------</option>               
<?php
	for($i=0; $i<count($loaicon); $i++){
		echo "<option value=".$loaicon[$i]['MaLoaiSP'].">".$loaicon[$i]['TenLoaiSP']."</option>";
	}
?>
</select>